﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using YXQ.Dao.ViewModel;
namespace YXQ.Service
{

    public class BJService : IBJService
    {


        BJDao dao = new BJDao();


        #region IBJService 成员

        public List<Y_BJ> GetList(int startIndex, int maxRow, out int recordcount)
        {

            return dao.GetList(startIndex, maxRow, out recordcount);

        }


        #endregion


        #region IBJService 成员

        public int Save(BJModel obj)
        {

            return dao.Save(obj);

        }


        #endregion


        #region IBJService 成员

        public BJModel GetOneById(int id)
        {

            return dao.GetOneById(id);

        }


        #endregion

        #region IBJService 成员
        public int DelById(int id)
        {

            return dao.DelById(id);

        }


        #endregion



        public BJModel GetOneByProjectId(int id,int reid)
        {
            return dao.GetOneByProjectId(id, reid);
        }

        public BJModel GetOneByProjectId(int id)
        {
            return dao.GetOneByProjectId(id);
        }
        public List<BJModel> GetByProjectId(int id)
        {
            return dao.GetByProjectId(id);
        }
    }

}

